//
// kxf   29/12/23 3:26 pm
//
export class SysUtils {
   static  ld = {
        "uid": "182",
        "nickName": "赵永岩",
        "avatar": "var\/aokai\/upload\/image\/2023\/12\/image20231211112255YUWVYY_1080X608.jpeg",
        "orgType": "",
        "sysRole": "employee",
        "majorOrgID": "1",
        "createTime": "1701162641",
        "tokenAccount": "0.00",
        "number": "18611219633"
    }

    static set<T>(key: string, value: T) {
        PersistentStorage.PersistProp<T>(key, value)
        AppStorage.Set<T>(key, value)
    }

    static get<T>(key: string, defaultValue: T): T {
        PersistentStorage.PersistProp<T>(key, defaultValue)
        return AppStorage.Get<T>(key)
    }
}